﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace iLangl.LanguageWire.DAL.iLanglDAL.XMLStorage
{
	public class XMLDALFacade : IDALFacade
	{
		#region IDALFacade Members
		private IProjectDAL projectDAL = null;
		public IProjectDAL ProjectDAL
		{
			get
			{

				if (projectDAL == null)
				{
					projectDAL = new ProjectDAL(); 
				}

				return projectDAL;
				
			}
		}

		private ICompanyDAL companyDAL = null;
		public ICompanyDAL CompanyDAL
		{
			get 
			{
				if (companyDAL == null)
				{
					companyDAL = new CompanyDAL();
				}

				return companyDAL;
			}
		}

		private IContactDAL contactDAL = null;
		public IContactDAL ContactDAL
		{
			get 
			{
				if (contactDAL == null)
				{
					contactDAL = new ContactDAL();
				}

				return contactDAL;
			}
		}



		private ISynchronizedDAL _synchronizedDAL;
		public ISynchronizedDAL SynchronizedDAL
		{
			get 
			{
				if (_synchronizedDAL == null)
				{
					_synchronizedDAL = new SynchronizedDAL();
				}

				return _synchronizedDAL;
			}
		}


		private ITranslationDAL translationDAL = null;
		public ITranslationDAL TranslationDAL
		{
			get 
			{
				if (translationDAL == null)
				{
					translationDAL = new TranslationDAL();
				}

				return translationDAL;
			}
		}

		private IAlertDAL alertDAL = null;
		public IAlertDAL AlertDAL
		{
			get 
			{
				if (alertDAL == null)
				{
					alertDAL = new AlertDAL();
				}

				return alertDAL;
			}
		}

		#endregion
	}
}
